import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

// export const useCounterStore = defineStore('counter', () => {
//   const count = ref(0)
//   const doubleCount = computed(() => count.value * 2)
//   function increment() {
//     count.value++
//   }

//   return { count, doubleCount, increment }
// })

export const useCounterStore = defineStore('city', () => {
  // 城市id，名称，经纬度
  const cityId = ref(20)
  const cityName = ref('')
  const latitude = ref('23.135610180010865');
  const longitude = ref('113.42416693422547');
  // 视频链接
  const video = ref(null)

  return { cityId, cityName, latitude, longitude,video }
})
